package com.dynamicthreadpool.strategy;

import com.dynamicthreadpool.spi.extension.SPI;
import java.util.concurrent.RejectedExecutionHandler;
import java.util.concurrent.ThreadPoolExecutor;

/**
 * 拒绝策略接口，继承自Java标准的RejectedExecutionHandler
 */
@SPI("abort")
public interface RejectStrategy extends RejectedExecutionHandler {

    /**
     * 获取拒绝策略名称
     * @return 拒绝策略名称
     */
    String getPolicyName();
}
